package com.buba.springcloud.dao;

import com.buba.springcloud.entities.HfFoods;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author taodeyu
 * @Date 2021/12/29 下午 2:20
 * @Version 1.0
 */
@Mapper
public interface FoodMapper {
    List<HfFoods> getAllFood(@Param("foodName") String foodName,@Param("foodType") Integer foodType,@Param("foodStatus") Integer foodStatus);

    Integer saveFood(HfFoods hfFoods);

    Integer deleteFoodById(Integer id);

    Integer updateFood(HfFoods hfFoods);

    Integer updateFoodStatus(HfFoods hfFoods);
}
